Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove page_allocator and reflector Version #45

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

jinzhongjia
Copy link
Contributor

@jinzhongjia jinzhongjia commented Jun 20, 2024

removed page_allocator, and use general purpose allocator

adn reflector the version, improved the readability of some codes

By the way, multiple memory leaks occurred in versions using page_allocator in the past.

@jinzhongjia
Copy link
Contributor Author

This can ensure small-grained memory application without having to apply for a whole page every time.

@jinzhongjia
Copy link
Contributor Author

OMG, bro, why are you still using c_allocator?

@jinzhongjia jinzhongjia marked this pull request as draft June 20, 2024 12:05
@hendriknielaender
Copy link
Owner

OMG, bro, why are you still using c_allocator?

That's a deprecated allocator 😅 when we still used libarchive for extracting. So good find, from your side.

@jinzhongjia jinzhongjia marked this pull request as ready for review June 21, 2024 02:42
@jinzhongjia
Copy link
Contributor Author

The pr test also passed on Linux, and the segment fault error seemed to be fixed.
It can be merged currently

@jinzhongjia
Copy link
Contributor Author

image

src/versions.zig Show resolved Hide resolved
@hendriknielaender
Copy link
Owner

I think we can also remove linkLibC from the build process.

@hendriknielaender hendriknielaender merged commit d3c1c17 into hendriknielaender:main Jun 21, 2024
4 checks passed
@jinzhongjia jinzhongjia deleted the allocator branch June 23, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants